﻿using System;
using FastNet.Internal;

namespace FastNet
{
	public sealed class ExceptionEventArgs<TException> : EventArgs where TException : Exception
	{
		internal ExceptionEventArgs( TException exception )
		{
			Logic.Check<ArgumentNullException>( exception != null, "exception" );

			this.Exception = exception;
		}


		public TException Exception { get; private set; }
	}
}
